﻿using Enyim.Caching;
using System.Web.Mvc;
using SilenthinkContract;
using Web.Manage.Controllers;
using Web.Manage.Areas.Auction.Models;

namespace Web.Manage.Areas.Auction.Controllers
{
    public class AuctionController : BaseController
    {
        public AuctionController(ILogService logService, IBaseService baseService, IExtraService extraService, IStoreService storeService, IOrderService orderService, IGameService gameService, IAuctionService auctionService, IPassportService passportService, IPaymentService paymentService, IMemcachedClient memcachedClient)
            : base(logService, baseService, extraService, storeService, orderService, gameService, auctionService, passportService, paymentService, memcachedClient)
        {
        }

        public ActionResult Index(int page = 1, int size = 50)
        {
            var model = new AuctionControllerModel.Index();
            model.Auctions = AuctionService.GetPagedAuction(page, size).ToPagedList(page, size);
            return View(model);
        }

    }
}
